When the setup program runs all of the previous information in the autoexec.bat file is lost. The only thing in the file is the new environment variable settings.
$INVESTIGATION:
The subroutine Updata_Autoexec() opens AUTOEXEC.EXE as in OUTPUT mode not APPEND mode.